import service from '@/utils/request'

const BtnModelApi = {
  // ----------------推广规则-----------------
  listBtnModel:function(data){
    return service.get('btnModel/page', {params:data})
  },
  addBtnModel:function(data){
    return service.post('btnModel', data)
  },
  editBtnModel:function(data){
    return service.put('btnModel', data)
  },
  updateBtnModelState:function(data){
    return service.put('btnModel/updateBtnModelState', data)
  },
  deleteBtnModel:function(data){
    return service.put('btnModel/delete', data)
  },
  btnModelList(data){
    return service.get('btnModel/listIdName', {params:data})
  },
  getBtnModel(data){
    return service.get('btnModel', {params:data})
  },
  
}

export default BtnModelApi